import { createRouter, createWebHistory } from 'vue-router'
import home from '../views/home/index.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: home
  },
  {
    path: '/detaliA/:id',
    name: 'detalis',
    component: () => import('../views/detaliA/index.vue')
  },
  {
    path: '/detaliB',
    name: 'detaliB',
    component: () => import('../views/detaliB/index.vue')
  },
]
const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})
export default router
